#include<stdio.h>
#include<conio.h>

int main(void) {
	int x;
	int hang_tram, hang_chuc, hang_dv;
	printf("Nhap so tu nhien co 3 c/s x = ");
	scanf("%d", &x);
	hang_tram = x / 100;
	hang_chuc = (x - 100 * hang_tram) / 10;
	hang_dv = x - 100 * hang_tram - 10 * hang_chuc;
	printf("Chu so hang tram la   %d\n", hang_tram);
	printf("Chu so hang chuc la   %d\n", hang_chuc);
	printf("Chu so hang don vi la %d\n", hang_dv); 
	getch();
	return 0;
}
